package j_applicationEvent;

import java.io.Serializable;

import org.springframework.context.ApplicationEvent;

/**
 * 定义StudentAddEvent监听事件
 * 继承ApplicationEvent
 * StudentAddEvent类中需要实现自己的构造函数
 * @author Y
 *
 */
public class StudentAddEvent extends ApplicationEvent implements Serializable{

	/**
	 * 序列化
	 */
	private static final long serialVersionUID = 3708892533247630192L;
	
	private String m_sStudentName;
	
	
	/**
	 * 实现自己的构造方法
	 * @param source
	 * @param _sStudentName
	 */
	public StudentAddEvent(Object source , String _sStudentName) {
		super(source);
		this.m_sStudentName=_sStudentName;
	}


	/**
	 * 获取学生姓名
	 * @return
	 */
	public String getM_sStudentName() {
		return m_sStudentName;
	}



}
